using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainUISceneMgr : BaseScene
{
    // Start is called before the first frame update
    IEnumerator Start()
    {
        yield return null;
        ResourceLoadPanel resLoadPanel;
        resLoadPanel = UIManager.Instance.GetPanel<ResourceLoadPanel>(0);
        resLoadPanel.SetPorcess(60);
        ARPGTestMainPanel mainPanel = UIManager.Instance.OpenPlane<ARPGTestMainPanel>();
        resLoadPanel.SetPorcess(100);
        //ObjectPoolManager.Instance.InitBundles(AssetBundleManager.Instance.bundles[AssetBundleManager.Instance.POOL_BUNDLE], AssetBundleManager.Instance.bundles);
        ObjectPoolManager.Instance.DePool<TestPoolElement>("Dice", false, "Common");
        SoundManager.Instance.Play("pig_02.mp3");
        SoundManager.Instance.Play("music_01.mp3",soundStyle:SoundStyle.backGround);
        // SoundManager.Instance.Play("music_01", SoundStyle.backGround);
    }

    // Update is called once per frame
    void Update()
    {
        if(Input.GetKeyDown(KeyCode.Space))
        {
            Debug.Log("space");
            SceneManager.Instance.ResetScene<SoundTestSceneMgr>("CommonScene");
        }   
    }
}
